<?php 
   header("Access-Control-Allow-origin:*");
//    $id=$_POST['id'];
   $id=$_GET['id'];
//    echo($id);
   $mysqli=new Mysqli('localhost','root','root','db_yuedu');
   if($mysqli->connect_errno){
       die();
   }
   $sql="select * from t_articles where id={$id}";
   $result=$mysqli->query($sql);
//    echo(Mysqli_num_rows($result)); //1
   $acticle=Mysqli_fetch_assoc($result);
   echo(json_encode($acticle));

?>